<!DOCTYPE html>
<html lang="en">

<!-- Head tag -->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="一名Java开发人员。">
    <meta name="keyword"  content="">
    <link rel="shortcut icon" href="/img/favicon.ico">

    <title>
        
          FastDFS + Nginx 文件上传 - 邓佳的博客 | Jia Blog
        
    </title>

    <link rel="canonical" href="http://dengjia.top/2021/09/12/fastdfs-nginx/">

    <!-- Bootstrap Core CSS -->
    
<link rel="stylesheet" href="/css/bootstrap.min.css">


    <!-- Custom CSS -->
    
<link rel="stylesheet" href="/css/hux-blog.min.css">


    <!-- Pygments Highlight CSS -->
    
<link rel="stylesheet" href="/css/highlight.css">


    <!-- Custom Fonts -->
    <!-- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> -->
    <!-- Hux change font-awesome CDN to qiniu -->
    <link href="https://cdn.staticfile.org/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">


    <!-- Hux Delete, sad but pending in China
    <link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/
    css'>
    -->


    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- ga & ba script hoook -->
    <script></script>
<meta name="generator" content="Hexo 5.4.0"></head>


<!-- hack iOS CSS :active style -->
<body ontouchstart="">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header page-scroll">
            <button type="button" class="navbar-toggle">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">Jia`s Blog</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <!-- Known Issue, found by Hux:
            <nav>'s height woule be hold on by its content.
            so, when navbar scale out, the <nav> will cover tags.
            also mask any touch event of tags, unfortunately.
        -->
        <div id="huxblog_navbar">
            <div class="navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="/">Home</a>
                    </li>
                    
                        
                    
                        
                            <li>
                                <a href="/archives/">Archives</a>
                            </li>
                        
                    
                        
                            <li>
                                <a href="/about/">About</a>
                            </li>
                        
                    
                        
                            <li>
                                <a href="/tags/">Tags</a>
                            </li>
                        
                    
                </ul>
            </div>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container -->
</nav>
<script>
    // Drop Bootstarp low-performance Navbar
    // Use customize navbar with high-quality material design animation
    // in high-perf jank-free CSS3 implementation
    var $body = document.body;
    var $toggle = document.querySelector('.navbar-toggle');
    var $navbar = document.querySelector('#huxblog_navbar');
    var $collapse = document.querySelector('.navbar-collapse');

    $toggle.addEventListener('click', handleMagic)

    function handleMagic(e) {
        if ($navbar.className.indexOf('in') > 0) {
            // CLOSE
            $navbar.className = " ";
            // wait until animation end.
            setTimeout(function () {
                // prevent frequently toggle
                if ($navbar.className.indexOf('in') < 0) {
                    $collapse.style.height = "0px"
                }
            }, 400)
        } else {
            // OPEN
            $collapse.style.height = "auto"
            $navbar.className += " in";
        }
    }
</script>


<!-- Main Content -->

<!-- Image to hack wechat -->
<!-- <img src="http://dengjia.top/img/icon_wechat.png" width="0" height="0"> -->
<!-- <img src="{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}" width="0" height="0"> -->

<!-- Post Header -->
<style type="text/css">
    header.intro-header{
        background-image: url('/img/index.jpg')
    }
</style>
<header class="intro-header" >
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <div class="post-heading">
                    <div class="tags">
                        
                          <a class="tag" href="/tags/#Nginx" title="Nginx">Nginx</a>
                        
                          <a class="tag" href="/tags/#FastDFS" title="FastDFS">FastDFS</a>
                        
                          <a class="tag" href="/tags/#Shell" title="Shell">Shell</a>
                        
                          <a class="tag" href="/tags/#CentOS7" title="CentOS7">CentOS7</a>
                        
                          <a class="tag" href="/tags/#Java" title="Java">Java</a>
                        
                    </div>
                    <h1>FastDFS + Nginx 文件上传</h1>
                    <h2 class="subheading">FastDFS结合Nginx实现文件上传、下载、删除功能。</h2>
                    <span class="meta">
                        Posted by Deng Jia on
                        2021-09-12
                    </span>
                </div>
            </div>
        </div>
    </div>
</header>

<!-- Post Content -->
<article>
    <div class="container">
        <div class="row">

    <!-- Post Container -->
            <div class="
                col-lg-8 col-lg-offset-2
                col-md-10 col-md-offset-1
                post-container">

                <p>前往源码地址：<br><a target="_blank" rel="noopener" href="https://gitee.com/DENG-JIAAA/fastdfs">https://gitee.com/DENG-JIAAA/fastdfs</a></p>
<h2 id="Nginx"><a href="#Nginx" class="headerlink" title="Nginx"></a>Nginx</h2><blockquote>
<p>Nginx：<br>&emsp;&emsp; C语言开发的高性能的 http服务器/反向代理服务器及电子邮件（IMAP/POP3）代理服务器。<br>应用场景：<br>&emsp;&emsp; 1）http服务器；<br>&emsp;&emsp; 2）虚拟主机；<br>&emsp;&emsp; 3）反向代理，负载均衡。</p>
</blockquote>
<h3 id="环境依赖"><a href="#环境依赖" class="headerlink" title="环境依赖"></a>环境依赖</h3><blockquote>
<p><code>yum install gcc-c++ &amp;&amp; yum install -y pcre pcre-devel &amp;&amp; yum install -y zlib zlib-devel &amp;&amp; yum install -y openssl openssl-devel</code></p>
</blockquote>
<ul>
<li>gcc <code>yum install gcc-c++</code></li>
<li>pcre <code>yum install -y pcre pcre-devel</code></li>
<li>zlib <code>yum install -y zlib zlib-devel</code></li>
<li>openssl <code>yum install -y openssl openssl-devel</code></li>
</ul>
<h3 id="具体操作"><a href="#具体操作" class="headerlink" title="具体操作"></a>具体操作</h3><ul>
<li>下载 <code>wget http://nginx.org/download/nginx-1.12.0.tar.gz</code></li>
<li>解压 <code>tar -zxvf nginx-1.12.0.tar.gz</code></li>
<li>配置 <code>./configure</code></li>
<li>编译、安装 <code>make &amp;&amp; make install</code></li>
<li>验证 <code>cd /usr/local/nginx</code>，存在conf、sbin、html文件夹，安装成功！</li>
</ul>
<h3 id="使用"><a href="#使用" class="headerlink" title="使用"></a>使用</h3><blockquote>
<p>启动 <code>/usr/local/nginx/sbin/nginx</code>，使用虚拟机ip进行访问。<br>停止 <code>cd /usr/local/nginx/sbin &amp;&amp; ./nginx -s quit</code>（推荐）<br>再启</p>
<ul>
<li>先停再启 <code>cd /usr/local/nginx/sbin &amp;&amp; ./nginx -s quit &amp;&amp; ./nginx</code>（推荐）</li>
<li>直接重启 <code>cd /usr/local/nginx/sbin &amp;&amp; ./nginx -s reload</code></li>
</ul>
</blockquote>
<h2 id="FastDFS"><a href="#FastDFS" class="headerlink" title="FastDFS"></a>FastDFS</h2><h3 id="Tracker"><a href="#Tracker" class="headerlink" title="Tracker"></a>Tracker</h3><ul>
<li>环境、库、安装包<ul>
<li>gcc <code>yum install gcc-c++</code></li>
<li>libevent <code>yum -y install libevent</code></li>
<li><a target="_blank" rel="noopener" href="https://github.com/happyfish100/libfastcommon/archive/V1.0.43.tar.gz">libfastcommon</a> <code>cd /usr/local &amp;&amp; tar -zxvf libfastcommon-1.0.43.tar.gz &amp;&amp; cd libfastcommon-1.0.43 &amp;&amp; ./make.sh &amp;&amp; ./make.sh install</code></li>
<li><a target="_blank" rel="noopener" href="https://github.com/happyfish100/fastdfs/archive/V6.06.tar.gz">tracker</a> <code>cd /usr/local/ &amp;&amp; tar -zxvf fastdfs-6.06.tar.gz &amp;&amp; cd fastdfs-6.06/ &amp;&amp; ./make.sh &amp;&amp; ./make.sh install</code></li>
</ul>
</li>
<li>配置文件拷贝 <code>cd conf/ &amp;&amp; cp ./* /etc/fdfs/</code></li>
<li>配置 <code>cd /etc/fdfs/ &amp;&amp; vim tracker.conf</code><ul>
<li>端口保持默认：22122</li>
<li>修改元数据存储目录：base_path = /home/dj/dev/fastdfs</li>
</ul>
</li>
<li>使用<blockquote>
<p>启动：<code>/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start</code><br>重启：<code>/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart</code></p>
</blockquote>
</li>
</ul>
<h3 id="Storage"><a href="#Storage" class="headerlink" title="Storage"></a>Storage</h3><ul>
<li>环境、库、安装包<ul>
<li>libevent、<a target="_blank" rel="noopener" href="https://github.com/happyfish100/libfastcommon/archive/V1.0.43.tar.gz">libfastcommon</a>、<a target="_blank" rel="noopener" href="https://github.com/happyfish100/fastdfs/archive/V6.06.tar.gz">storage</a>（同tracker）</li>
</ul>
</li>
<li>配置 <code>cd /etc/fdfs/ &amp;&amp; vim storage.conf</code><ul>
<li>修改：base_path = /home/dj/dev/fastdfs</li>
<li>修改：store_path0 = /home/dj/dev/fastdfs</li>
<li>修改：tracker_server = 192.168.1.11:22122（保留一个即可）</li>
</ul>
</li>
<li>使用<blockquote>
<p>启动：<code>/usr/bin/fdfs_storaged /etc/fdfs/storage.conf start</code></p>
</blockquote>
</li>
</ul>
<h2 id="fastdfs-nginx-module"><a href="#fastdfs-nginx-module" class="headerlink" title="fastdfs-nginx-module"></a>fastdfs-nginx-module</h2><h3 id="下载解压"><a href="#下载解压" class="headerlink" title="下载解压"></a>下载解压</h3><p><a target="_blank" rel="noopener" href="https://github.com/happyfish100/fastdfs-nginx-module/archive/V1.22.tar.gz">fastdfs-nginx-module</a>:<br><code>cd /usr/local &amp;&amp; tar -zxvf fastdfs-nginx-module-1.22.tar.gz &amp;&amp; cd fastdfs-nginx-module-1.22</code></p>
<h3 id="文件拷贝"><a href="#文件拷贝" class="headerlink" title="文件拷贝"></a>文件拷贝</h3><p><code>cp /usr/local/fastdfs-nginx-module-1.22/src/mod_fastdfs.conf /etc/fdfs/</code></p>
<h3 id="配置"><a href="#配置" class="headerlink" title="配置"></a>配置</h3><p><code>vim /etc/fdfs/mod_fastdfs.conf</code></p>
<ul>
<li>修改：tracker_server=192.168.1.11:22122</li>
<li>修改：url_have_group_name = true</li>
<li>修改：store_path0：/home/dj/dev/fastdfs</li>
</ul>
<h3 id="重新编译、安装"><a href="#重新编译、安装" class="headerlink" title="重新编译、安装"></a>重新编译、安装</h3><p>前往nginx安装目录并执行：<br><code>cd /home/dj/dev/nginx/nginx-1.20.1/ &amp;&amp; ./configure --add-module=/usr/local/fastdfs-nginx-module-1.22/src &amp;&amp; make &amp;&amp; make install</code></p>
<h3 id="修改配置文件"><a href="#修改配置文件" class="headerlink" title="修改配置文件"></a>修改配置文件</h3><p><code>vim /usr/local/nginx/conf/nginx.conf</code></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">location ~/group([0-9]) &#123;</span><br><span class="line">	ngx_fastdfs_module;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h2 id="Java客户端"><a href="#Java客户端" class="headerlink" title="Java客户端"></a>Java客户端</h2><h3 id="建一个Maven工程"><a href="#建一个Maven工程" class="headerlink" title="建一个Maven工程"></a>建一个Maven工程</h3><ul>
<li><p>添加依赖</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">dependency</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">groupId</span>&gt;</span>net.oschina.zcx7878<span class="tag">&lt;/<span class="name">groupId</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">artifactId</span>&gt;</span>fastdfs-client-java<span class="tag">&lt;/<span class="name">artifactId</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">version</span>&gt;</span>1.27.0.0<span class="tag">&lt;/<span class="name">version</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">dependency</span>&gt;</span></span><br></pre></td></tr></table></figure></li>
<li><p>配置文件</p>
<figure class="highlight properties"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">fastdfs.connect_timeout_in_seconds</span> = <span class="string">5</span></span><br><span class="line"><span class="meta">fastdfs.network_timeout_in_seconds</span> = <span class="string">30</span></span><br><span class="line"><span class="meta">fastdfs.charset</span> = <span class="string">UTF-8</span></span><br><span class="line"><span class="meta">fastdfs.http_anti_steal_token</span> = <span class="string">false</span></span><br><span class="line"><span class="meta">fastdfs.http_secret_key</span> = <span class="string">FastDFS1234567890</span></span><br><span class="line"><span class="meta">fastdfs.http_tracker_http_port</span> = <span class="string">80</span></span><br><span class="line"><span class="meta">fastdfs.tracker_servers</span> = <span class="string">192.168.1.11:22122</span></span><br><span class="line"><span class="meta">fastdfs.connection_pool.enabled</span> = <span class="string">true</span></span><br><span class="line"><span class="meta">fastdfs.connection_pool.max_count_per_entry</span> = <span class="string">500</span></span><br><span class="line"><span class="meta">fastdfs.connection_pool.max_idle_time</span> = <span class="string">3600</span></span><br><span class="line"><span class="meta">fastdfs.connection_pool.max_wait_time_in_ms</span> = <span class="string">1000</span></span><br></pre></td></tr></table></figure></li>
</ul>
<h3 id="文件上传"><a href="#文件上传" class="headerlink" title="文件上传"></a>文件上传</h3><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">package</span> top.dj;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.csource.common.NameValuePair;</span><br><span class="line"><span class="keyword">import</span> org.csource.fastdfs.*;</span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"><span class="keyword">import</span> org.slf4j.Logger;</span><br><span class="line"><span class="keyword">import</span> org.slf4j.LoggerFactory;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.test.context.SpringBootTest;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Author</span>: DengJia</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span>: 2021/9/7 21:49</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span>:</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line"><span class="meta">@SpringBootTest</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="keyword">public</span> <span class="class"><span class="keyword">class</span> <span class="title">DFSTest</span> </span>&#123;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">final</span> <span class="keyword">static</span> Logger logger = LoggerFactory.getLogger(DFSTest.class);</span><br><span class="line"></span><br><span class="line">    <span class="meta">@Test</span></span><br><span class="line">    <span class="function"><span class="keyword">void</span> <span class="title">testUpload</span><span class="params">()</span> </span>&#123;</span><br><span class="line">        <span class="keyword">try</span> &#123;</span><br><span class="line">            ClientGlobal.initByProperties(<span class="string">&quot;fastdfs-client.properties&quot;</span>);</span><br><span class="line">            TrackerClient tracker = <span class="keyword">new</span> TrackerClient();</span><br><span class="line">            TrackerServer trackerServer = tracker.getConnection();</span><br><span class="line">            StorageServer storageServer = <span class="keyword">null</span>;</span><br><span class="line">            StorageClient1 client = <span class="keyword">new</span> StorageClient1(trackerServer, storageServer);</span><br><span class="line">            NameValuePair nvp[] = <span class="keyword">null</span>;</span><br><span class="line">            <span class="comment">//上传到文件系统</span></span><br><span class="line">            String fileId = client.upload_file1(<span class="string">&quot;F:\\ps\\centos-docker.png&quot;</span>, <span class="string">&quot;png&quot;</span>, nvp);</span><br><span class="line">            logger.info(fileId);</span><br><span class="line">        &#125; <span class="keyword">catch</span> (Exception e) &#123;</span><br><span class="line">            e.printStackTrace();</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<hr>

<p>原文参考：<br>&emsp; <a target="_blank" rel="noopener" href="https://www.cnblogs.com/hafiz/p/6891458.html">https://www.cnblogs.com/hafiz/p/6891458.html</a><br>&emsp; <a target="_blank" rel="noopener" href="https://juejin.cn/post/6844904078502264845#heading-6">https://juejin.cn/post/6844904078502264845#heading-6</a></p>


                <hr>

                

                <ul class="pager">
                    
                        <li class="previous">
                            <a href="/2021/09/12/maven-packaging/" data-toggle="tooltip" data-placement="top" title="构建分布式项目时子模块相互依赖打包技巧">◀ Previous Post</a>
                        </li>
                    
                    
                </ul>

                

                

            </div>
    <!-- Side Catalog Container -->
        

    <!-- Sidebar Container -->

            <div class="
                col-lg-8 col-lg-offset-2
                col-md-10 col-md-offset-1
                sidebar-container">

                <!-- Featured Tags -->
                
                <section>
                    <!-- no hr -->
                    <h5><a href="/tags/">FEATURED TAGS</a></h5>
                    <div class="tags">
                       
                          <a class="tag" href="/tags/#Nginx" title="Nginx">Nginx</a>
                        
                          <a class="tag" href="/tags/#FastDFS" title="FastDFS">FastDFS</a>
                        
                          <a class="tag" href="/tags/#Shell" title="Shell">Shell</a>
                        
                          <a class="tag" href="/tags/#CentOS7" title="CentOS7">CentOS7</a>
                        
                          <a class="tag" href="/tags/#Java" title="Java">Java</a>
                        
                    </div>
                </section>
                

                <!-- Friends Blog -->
                
                <hr>
                <h5>FRIENDS</h5>
                <ul class="list-inline">

                    
                        <li><a href="https://github.com/DENG-JIAAA/" target="_blank">Github</a></li>
                    
                        <li><a href="https://gitee.com/DENG-JIAAA" target="_blank">Gitee</a></li>
                    
                        <li><a href="https://www.cnblogs.com/DJOSIMON/" target="_blank">cnblogs</a></li>
                    
                        <li><a href="https://huangxuan.me/" target="_blank">Hux Blog</a></li>
                    
                        <li><a href="http://kaijun.rocks/hexo-theme-huxblog/" target="_blank">Kaijun&#39;s Blog</a></li>
                    
                </ul>
                
            </div>

        </div>
    </div>
</article>









<!-- Footer -->
<!-- Footer -->
<footer>
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <ul class="list-inline text-center">
                    
                    
                        <li>
                            <a target="_blank" href="https://twitter.com/DENG_JIAAA">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
                            </span>
                            </a>
                        </li>
                    
                    

                    
                        <li>
                            <a target="_blank" href="http://weibo.com/dengjiaaa">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-weibo fa-stack-1x fa-inverse"></i>
                            </span>
                            </a>
                        </li>
                    

                    
                        <li>
                            <a target="_blank" href="https://www.facebook.com/jia.deng.568089">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-facebook fa-stack-1x fa-inverse"></i>
                            </span>
                            </a>
                        </li>
                    

                    
                        <li>
                            <a target="_blank" href="https://github.com/DENG-JIAAA">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-github fa-stack-1x fa-inverse"></i>
                            </span>
                            </a>
                        </li>
                    

                    

                </ul>
                <p class="copyright text-muted">
                    Copyright &copy; 2020-2021 <a href="http://dengjia.top/">Jia`s Blog</a>
                    <br>
                    Theme by <a target="_blank" rel="noopener" href="https://github.com/huxpro/huxpro.github.io">Hux</a>

                    <!--<span style="display: inline-block; margin: 0 5px;">
                        <i class="fa fa-heart"></i>
                    </span>
                    Ported by <a target="_blank" rel="noopener" href="http://blog.kaijun.rocks">Kaijun</a> |
                    <iframe
                        style="margin-left: 2px; margin-bottom:-5px;"
                        frameborder="0" scrolling="0" width="91px" height="20px"
                        src="https://ghbtns.com/github-btn.html?user=kaijun&repo=hexo-theme-huxblog&type=star&count=true" >
                    </iframe>-->

                </p>
            </div>
        </div>
    </div>
</footer>

<!-- jQuery -->

<script src="/js/jquery.min.js"></script>


<!-- Bootstrap Core JavaScript -->

<script src="/js/bootstrap.min.js"></script>


<!-- Custom Theme JavaScript -->

<script src="/js/hux-blog.min.js"></script>


<!-- async load function -->
<script>
    function async(u, c) {
        var d = document, t = 'script',
            o = d.createElement(t),
            s = d.getElementsByTagName(t)[0];
        o.src = u;
        if (c) {
            o.addEventListener('load', function (e) {
                c(null, e);
            }, false);
        }
        s.parentNode.insertBefore(o, s);
    }
</script>

<!--
     Because of the native support for backtick-style fenced code blocks
     right within the Markdown is landed in Github Pages,
     From V1.6, There is no need for Highlight.js,
     so Huxblog drops it officially.

     - https://github.com/blog/2100-github-pages-now-faster-and-simpler-with-jekyll-3-0
     - https://help.github.com/articles/creating-and-highlighting-code-blocks/
-->
<!--
    <script>
        async("http://cdn.bootcss.com/highlight.js/8.6/highlight.min.js", function(){
            hljs.initHighlightingOnLoad();
        })
    </script>
    <link href="http://cdn.bootcss.com/highlight.js/8.6/styles/github.min.css" rel="stylesheet">
-->

<!-- jquery.tagcloud.js -->
<script>
    // only load tagcloud.js in tag.html
    if ($('#tag_cloud').length !== 0) {
        async("http://dengjia.top/js/jquery.tagcloud.js", function () {
            $.fn.tagcloud.defaults = {
                //size: {start: 1, end: 1, unit: 'em'},
                color: {start: '#bbbbee', end: '#0085a1'},
            };
            $('#tag_cloud a').tagcloud();
        })
    }
</script>

<!--fastClick.js -->
<script>
    async("https://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js", function () {
        var $nav = document.querySelector("nav");
        if ($nav) FastClick.attach($nav);
    })
</script>

<!-- Google Analytics -->


<!-- Baidu TongJi -->


<!-- Side Catalog -->




<!-- Image to hack wechat -->
<img src="http://dengjia.top/img/icon_wechat.png" width="0" height="0"/>
<!-- Migrate from head to bottom, no longer block render and still work -->
</body>

</html>
